﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTO;
namespace WebClient
{
    public partial class Gioithieu : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack) {
                LoadGioiThieu();
            }
        }

        /// <summary>
        /// Lay thong tin gioi thieu ve cua hang
        /// </summary>
        private void LoadGioiThieu() {
            WebData db = new WebData();
            object obj = 23;
            DTO.News item = db.GetItemByIdNews(obj);
            lblContent.Text = "<p>" + item.bodyNew + "</p>";
            lblTitle.Text = item.title;
        }
    }
}